//
//  Chunk.h
//  FirstSCAnalyzer
//
//  Created by Roelant Ossewaarde on 9/4/09.
//  Copyright 2009 SUNY Buffalo. All rights reserved.
//

#import <Cocoa/Cocoa.h>


enum ChunkType {
	DateAndTimeChunkType,
	AutomemWorkoutChunkType,
	NullChunkType,
	UnknownChunkType
};




typedef enum ChunkType ChunkType;

@interface Chunk : NSObject {
	NSData *data;
	
}
-(ChunkType) typeOfChunk;
-(void)logChunk;
-(int)decodeBCD:(NSData*)bcdInt;
-(int) getMonth;
-(int) getSeconds;
-(int) getMinutes;
-(int) getHours;
-(int) getDay;
-(int) getYear;
-(long) getDistance;
-(long) getAverageStrokeRate;
-(long) getNumberOfStrokes;
-(long) getTime;

@property (retain) 	NSData *data;

@end
